#pragma once
#include<iostream>
#include<string>
#include<ctime>


#define INFO 1
#define WARNING 2
#define ERROR 3
#define FATAL 4

#define LOG(level,message) log(#level,message,__FILE__,__LINE__)

using namespace std;

void log(string level,string message,string file_name,int line){

    cout<<"["<<level<<"]"<<"["<<time(nullptr)<<"]"<<"["<<message<<"]"<<"["<<file_name<<"]"<<"["<<line<<"]"<<endl;

}